package com.webull.information.center.carwler.common.model;

import java.util.Date;

/**
 * job执行状态记录model
 *
 * @author shimingjun
 * @version 1.0
 * @since JDK 1.8
 */

public class CollectRecord {

    private Integer id;// ` int(11) NOT NULL AUTO_INCREMENT,

    private Integer lastTickerId;// ` int(11) DEFAULT NULL COMMENT '最后标的物id,空代表从头开始',

    private Integer exchangeId;// ` int(11) NOT NULL COMMENT '交易所ID',

    private String exchangeCode;// ` varchar(100) DEFAULT NULL COMMENT '交易所代码',

    private Date collectTime;// ` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最新采集时间',

    private String language;// ` varchar(20) DEFAULT NULL COMMENT '语言种类',

    private String collectJob;// ` varchar(100) DEFAULT NULL COMMENT '采集JOB',

    private String customer;// 调用用户

    private Date createTime;// ` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',

    private Date updateTime;// ` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',

    private Boolean del;// ` tinyint(2) NOT NULL DEFAULT '0' COMMENT '1:已删，0:正常，Java:boolean',

    private Integer recordType;// 任务类型 1、新闻 2、股票基础财报

    public static final class RecordTypeConstants {

        public static final Integer NEWS = 1;

        public static final Integer NEWS_BRANCH = 14;
        public static final Integer NEWS_PATCH = 15;

        public static final Integer NEWS_SINA = 16;// 新浪新闻类型

        public static final Integer REUTER_SINA = 17;// 新浪新闻类型

    }


    public Integer getRecordType() {
        return recordType;
    }

    public void setRecordType(Integer recordType) {
        this.recordType = recordType;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getLastTickerId() {
        return lastTickerId;
    }

    public void setLastTickerId(Integer lastTickerId) {
        this.lastTickerId = lastTickerId;
    }

    public Integer getExchangeId() {
        return exchangeId;
    }

    public void setExchangeId(Integer exchangeId) {
        this.exchangeId = exchangeId;
    }

    public String getExchangeCode() {
        return exchangeCode;
    }

    public void setExchangeCode(String exchangeCode) {
        this.exchangeCode = exchangeCode;
    }

    public Date getCollectTime() {
        return collectTime;
    }

    public void setCollectTime(Date collectTime) {
        this.collectTime = collectTime;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getCollectJob() {
        return collectJob;
    }

    public void setCollectJob(String collectJob) {
        this.collectJob = collectJob;
    }

    public String getCustomer() {
        return customer;
    }

    public void setCustomer(String customer) {
        this.customer = customer;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Boolean getDel() {
        return del;
    }

    public void setDel(Boolean del) {
        this.del = del;
    }
}
